package com.ktjy.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktjy.crm.entity.SysUser;
import org.apache.ibatis.annotations.Param;


import java.util.HashMap;
import java.util.List;

public interface UserMapper extends BaseMapper<SysUser> {

    public SysUser getUserByUsrNameWithRoleName(String usrName);

     List<SysUser> getUserListWithRoleName();

     //查询用户表和角色表，进行分页
    public IPage<SysUser> getUserByPage(Page<SysUser> page, @Param("map")HashMap<String, Object>hashMap);
}
